import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import pinia from '@/stores/index'

import '@/router/permission'
import axios from 'axios'
import ElementPlus from 'element-plus'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import 'element-plus/theme-chalk/index.css' // 引入Element Plus的全部样式


//import 'amfe-flexible' //移动端适配
pinia.use(piniaPluginPersistedstate) // 将插件应用到 Pinia 实例

axios.defaults.baseURL = 'http://202.192.19.106:8080'
// axios.defaults.baseURL = 'http://202.192.19.106:8080'
const app = createApp(App)

app.use(pinia)
app.use(router)
app.use(ElementPlus)

app.mount('#app')
